home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CDISPLAY
/
CDISPLAY.C
next >
Wrap
Text File
|
1989-09-07
|
933b
|
41 lines
/******************************************************************************
CDisplayText.c
The Static Display Class
Handles displaying strings to the pane..
SUPERCLASS = CStaticText
Copyright ⌐ 1989 Pegasus Technology. All rights reserved.
It is recommend that after you call itsMainPane->AppTextPtr from your
program, you do a gDesktop->Update to update your window.
******************************************************************************/
#include "CDisplayText.h"
/**** Global Variables ****/
/*** Class Constants ***/
/*** Methods ***/
void CDisplayText::AppTextPtr(
Ptr textPtr, /* Pointer to some text */
long numChars) /* Number of characters in the text */
{
/* Stuff the text in the Mac TE record */
TEInsert(textPtr, numChars, macTE);
TECalText(macTE); /* Determine line breaks */
AdjustBounds();
Refresh(); /* Draw the new text */
}